<?php
if (!defined('EBY_IN')){
	exit('HACKING NO INFO');
}
require('checklogin.php');



function first(){
	


$v = getgpc('v','G');

if ($v == 'profile'){

	$urs = $_ENV['db']->get_one('SELECT * FROM '.DB_PREFIX.'user WHERE eby_uid='.$_ENV['USER']['id']);
	
	$urs['group'] = D('user')->get_groupinfo($urs['eby_upower']);
	
	$pic = D('user')->get_headpic($urs['eby_uid']);
	
	$urs['h_pic_short'] = substr(strrchr($pic,'/'),1);
	
	$urs['h_pic'] = &$pic;
	 
	$_ENV['tpl']->assign('get', &$v);
	$_ENV['tpl']->assign('user', &$urs);
	$_ENV['tpl']->display('userinfo');
	
} else {
	$_ENV['tpl']->display('userinfo');
}



}


first();



?>